package org.komarichin.jdo.persistence;

import org.komarichin.beans.ILanguage;

import javax.jdo.annotations.*;

/**
 * User: Mykhaylo Komarichyn
 * Date: 03.02.2010
 * Time: 12:33:36
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Language implements ILanguage<Long> {
    private static final long serialVersionUID = 29169208535953203L;

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
    @Persistent
    private String isoName;


    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String getIsoName() {
        return isoName;
    }

    @Override
    public void setIsoName(String isoName) {
        this.isoName = isoName;
    }
}
